package com.coincalf.wallet.dto;

import com.coincalf.framework.dto.CoinRechargeDTO;
import com.coincalf.wallet.entity.CoinRecharge;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * CoinRecharge to CoinRechargeDTO 转换器
 */
@Mapper
public interface CoinRechargeDTOMapper {

    CoinRechargeDTOMapper INSTANCE = Mappers.getMapper(CoinRechargeDTOMapper.class);

    CoinRechargeDTO from(CoinRecharge coinRecharge);

    List<CoinRechargeDTO> from(List<CoinRecharge> coinRecharges);
}
